﻿<%@ Page Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="com.dz.web.Search" Title="无标题页" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphContent" runat="server">
  <LINK rel=STYLESHEET type=text/css href="/style/search.css" />

<DIV class="wrap clear">
<DIV class="bar">
搜索&nbsp;[ <font color=red><%=m_key_word%> </font> ]共找到<font color="red"><%=m_total_count%></font>个结果&nbsp;&nbsp;
</DIV>
<asp:Repeater ID="rptList" runat="server">
<ItemTemplate>
<table width="90%" border="0" cellspacing="0" cellpadding="0" style="margin-left:20px; margin-right:20px;">
	      <tr>
	        <td height="30" class="black14"><a href="/<%# Eval("bookId") %>.aspx" class="blue" target="_blank"><%#Eval("bookName") %></a> / 
	        <%#Eval("authorName") %></a> / 
	        <a href="/category/<%#Eval("bookcategoryId") %>.aspx" class="blue" target="_blank"><%#Eval("booksubcategoryName") %></a>
              
            <a href="/<%# Eval("bookId") %>.aspx" class="blue" target="_blank"><img border="0" src="/images/read.gif"/></a>
	        </td>
	      </tr>
	      
	      <tr>
	        <td style="line-height:1.5em;">简介：
	        <a href="/<%# Eval("bookId") %>.aspx" class="des" target="_blank"><%#GetDescription(Eval("description")) %></a></td>
	      </tr>
	      <tr>
	        <td height="22">最新更新：<a href="/chapter/<%#Eval("bookId") %>,<%#Eval("lastUpdateChapterId") %>.aspx" class="orange" target="_blank"><%#com.dz.common.SystemUtil.FilterTitle( Eval("lastUpdateChapterName").ToString()) %>&nbsp;&nbsp;<%#Eval("lastUpdateTime") %>
	       </a>
              </td>
	      </tr>
	      <tr><td>&nbsp;</td></tr>
        </table>
</ItemTemplate>
</asp:Repeater>

<script>
 var lstType=$("lstType");
 var txtSearch=$("txtSearch");
 var typeValue="<%= m_key_type%>";
 var wordValue="<%=m_key_word %>";
 txtSearch.value=wordValue;
 for(var index=0;index<lstType.options.length;index++)
 {
    if(lstType.options[index].value==typeValue)
    {
        lstType.options[index].selected=true;
        break;
    }
 }
</script>
          

	
</DIV>

</asp:Content>
